import { TurboModule } from '@rnoh/react-native-openharmony/ts';
import type { TurboModuleContext } from '@rnoh/react-native-openharmony/ts';


export class CalculatorModule extends TurboModule {
  constructor(protected ctx: TurboModuleContext) {
    super(ctx);
  }
    add(a: number, b: number): Promise<number> {
        return new Promise((resolve) => resolve(a + b));
      }
}